package com.hhsjdesign.dynamicui.core.property.widget;

import com.hhsjdesign.dynamicui.annoprocess.ADynamicUI
import com.hhsjdesign.dynamicui.annoprocess.AWidgetProperty
import com.hhsjdesign.dynamicui.core.property.WidgetSpecProperty
import com.hhsjdesign.dynamicui.core.widgetdata.WidgetTypeConst
import org.json.JSONObject

//网格
@ADynamicUI
@AWidgetProperty(WidgetTypeConst.GRID_VERTICAL)
class GridVWidgetProperty : WidgetSpecProperty {

    //横向间距
    var horizontalSpace: Int = 0;

    //纵向间距
    var verticalSpace: Int = 0;

    //列数
    var columnNumber: Int = 1
    var itemHeight: Int = -2

    constructor()

    constructor(jo: JSONObject) : super(jo) {
        horizontalSpace = jo.optInt("horizontalSpace")
        verticalSpace = jo.optInt("verticalSpace")
        columnNumber = jo.optInt("columnNumber")
        itemHeight = jo.optInt("itemHeight")
    }

}
